#include "TriangleTable.H"
#include "Polynomial.H"
#include "InterpConditions.H"
using namespace std;

int main(int argc, const char **argv)
{
    cout << "-----------------------Test TriTab------------------------" << endl;
    RealVect rv = {0, 1, 2, 3, 5, 6, 7, 8, 9, 1, 0, 1, 2, 1, 5, 1, 2, 0}, rowName = {1.1, 2.5, 3, 4, 5};
    TriangleTable<Real> Tab1(rv);
    Tab1.setRowNames(rowName);
    cout << Tab1;
    RealVect c1 = Tab1.getDiag();
    for (int i = 0; i < c1.size(); i++)
        cout << c1[i] << " ";
    cout << endl;
    return 0;
}